import ajax from '@/utils/request.js'

// 获取体系问题
// 列表
export function getQuestionList(data) {
    return ajax({
        url: '/storehouse/questionPage',
		method: 'GET',
        data
    })
}

// 问题详情
export function getQuestionDetial(id) {
    return ajax({
        url: '/storehouse/storehouseDetail/' + id,
		method: 'GET',
    })
}

// 添加
export function addQuestion(data) {
    return ajax({
        url: '/storehouse/addQuestion',
		method: 'POST',
        data
    })
}

// 编辑
export function editQuestion(data, id) {
    return ajax({
        url: '/storehouse/updateQuestion/' + id,
		method: 'PUT',
        data
    })
}


// 删除问题
export function delQuestion(id) {
    return ajax({
        url: '/storehouse/del/' + id,
		method: 'DELETE'
    })
}


// 学员问题
// 列表
export function getPlayerQuestionList(data) {
    return ajax({
        url: '/mobile/instructor/stu/stuQuestion',
		method: 'GET',
        data
    })
}

// 问题详情
export function getPlayerQuestionDetail(id) {
    return ajax({
        url: '/storehouse/questionDetail/' + id,
		method: 'GET'
    })
}


